package com.example.act6.utils;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    // 当前页
    // private int pageNum;
    private int currentPage;
    // 每页数量
    private int pageSize;
    // 总页数
   // private int totalPages;
    // 总记录数
    // private long totalSize;
    private long count;
    // 数据
    private List<T> dataList;

    public PageResult() {
    }

    public PageResult(int currentPage, int pageSize, long count, List<T> dataList) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.count = count;
        this.dataList = dataList;
    }
}